--[[create our table on initial (first) spawn]]--
function CreateStickyBombTable1(pl)
	pl.Mines = {}
end
hook.Add("PlayerInitialSpawn","CreateDemoStickyTable1",CreateStickyBombTable1)  

--[[safety which recreates the table each time we respawn, just in case]]--
function CreateStickyBombTable2(pl)
	pl.Mines = {}
end
hook.Add("PlayerSpawn","CreateDemoStickyTable2",CreateStickyBombTable2)  

--[[stickybomb explosion effects]]--
function StickyBomb_Explosion(owner,location,stickybomb,dmg,radius)
	local explodesound_1 = Sound ( "weapons/mortar/mortar_explode1.wav" )
	local explodesound_2 = Sound ( "weapons/underwater_explode3.wav" )
	local flasheffectdata = EffectData()
	flasheffectdata:SetOrigin( location )
	flasheffectdata:SetStart( location )
	flasheffectdata:SetMagnitude( 1 )
	flasheffectdata:SetScale( 1 )
	util.Effect( "HelicopterMegaBomb", flasheffectdata )
	util.BlastDamage(stickybomb,owner,location,radius,dmg)
	util.ScreenShake(location, 100, 100, 1, 1024)
	WorldSound( explodesound_1, location, 100, math.Rand( 50, 150 ) )
end
